const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      '/ncovabroad': {
        target: 'http://api.tianapi.com',
        changeOrigin: true
      },
      '/springTravel': {
        target: 'http://apis.juhe.cn',
        changeOrigin: true
      },
      '/xiaoniu': {
        target: 'https://ncov.deepeye.tech',
        changeOrigin: true,
        pathRewrite: {
          '^/xiaoniu': ''
        }
      }
    }
  }
})
